home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / SETUPH.BAT < prev    next >
DOS Batch File  |  1990-01-12  |  6KB  |  132 lines

  1. ECHO OFF
  2. ECHO ╔════════════════════════════════════════════════════════════╗
  3. ECHO ║ SETUPH - Toolkit install for nornal hard disk based systems║
  4. ECHO ╟────────────────────────────────────────────────────────────╢
  5. ECHO ║PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communication Co.║
  6. ECHO ║                 PC Magazine ■ Wolfgang Stiller             ║
  7. ECHO ╚════════════════════════════════════════════════════════════╝
  8. IF "%1"=="" goto help
  9. IF %1==? goto help
  10. CLS
  11. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  12. ECHO ║ This batch file is about to put PCDATA Toolkit files onto the           ║
  13. ECHO ║ RECOVERY diskette.  Use only if you boot from first physical hard disk. ║
  14. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  15. ECHO ║ You should be logged onto the drive from which you normally boot.       ║
  16. ECHO ║ The current directory must be the one containing the toolkit files.     ║
  17. ECHO ║ The RECOVERY diskette should be in drive %1. If this is not the case,   ║
  18. ECHO ║ please hit CNTL/BREAK to terminate this batch file.                     ║
  19. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  20. PAUSE
  21. IF NOT EXIST CHKBOOT.COM GOTO BadDisk
  22. IF NOT EXIST CHKFILEC.COM GOTO BadDisk
  23. GOTO Start
  24. :Help
  25. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  26. ECHO ║ Syntax is:   SETUPH a:                                                  ║
  27. ECHO ║           where a: is the drive containing the RECOVERY diskette.       ║
  28. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  29. ECHO ║ SETupH will check the first physical hard disk partition table and      ║
  30. ECHO ║ the boot sector on the current disk.  The reload files plus all needed  ║
  31. ECHO ║ toolkit files will be copied to the RECOVERY diskette.                  ║
  32. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  33. ECHO ║ Next SETupH will copy all needed files for the CHECK diskette.          ║
  34. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  35. GOTO End
  36. :BadDisk
  37. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  38. ECHO ║ This batch file MUST be executed from the directory containing the      ║
  39. ECHO ║ PCDATA Toolkit files.  One or more of these files is missing!           ║
  40. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  41. ECHO ║ Please check your current directory and disk and try again.             ║
  42. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  43. GOTO END
  44. :BadChk
  45. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  46. ECHO ║ An unrecoverable error has occurred executing CHKboot.  This is usually ║
  47. ECHO ║ due to disk problems such as no space or write protect.  Do you really  ║
  48. ECHO ║ have a physical hard (fixed) disk?                                      ║
  49. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  50. GOTO END
  51. :NoSYS
  52. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  53. ECHO ║ The CHECK diskette must have been formatted with a "FORMAT a:/S" so     ║
  54. ECHO ║ that a copy of the system is on it.  Please do a FORMAT and re-execute  ║
  55. ECHO ║ this batch file.                                                        ║
  56. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  57. GOTO END
  58. :Start
  59. CHKboot/I
  60. IF ERRORLEVEL 64 GOTO BADchk
  61. COPY CHKFILEC.COM %1
  62. COPY CFCOMPC.COM %1
  63. COPY CHKFILE.COM %1
  64. COPY CFCOMP.COM %1
  65. COPY CHKBOOT.COM %1
  66. COPY LODBOOT.COM %1
  67. COPY *.SCT %1
  68. COPY *.PRM %1
  69. COPY MIRDIR.COM %1
  70. COPY XALL.COM %1
  71. COPY SCAN*.BAT %1
  72. COPY FASTRUN.BAT %1
  73. COPY DSP*.BAT %1
  74. COPY RELODB.BAT %1
  75. DEL @@BOOT.SCT
  76. DEL @@PARTIT.SCT
  77. : Create special marker file so other batch files know about this one
  78. TYPE %1PCITKR.MRK >%1PCITKR.MRK
  79. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  80. ECHO ║ Your RECOVERY diskette has been built.  We are now checking the files   ║
  81. ECHO ║ written to it.  No files should be missing.  All toolkit files should   ║
  82. ECHO ║ match (This means all .COM and .BAT files).  If any files are deleted   ║
  83. ECHO ║ check that there is enough room on the diskette.  If any errors show up,║
  84. ECHO ║ please get a clean copy of the toolkit.                                 ║
  85. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  86. ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
  87. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  88. CHKfileC %1*.* ))INTRB.LOG/I:))
  89. CFcompC ))INTR.LOG ))INTRB.LOG/P/O
  90. DEL ))INTRB.LOG
  91. ECHO  
  92. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  93. ECHO ║ We are now creating the CHECK diskette.  Please insert it in drive %1   ║
  94. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  95. PAUSE
  96. IF NOT EXIST %1COMMAND.COM GOTO NoSYS
  97. COPY CHKFILEC.COM %1
  98. COPY CFCOMPC.COM %1
  99. COPY CHKBOOT.COM %1
  100. COPY *.PRM %1
  101. COPY MIRDIR.COM %1
  102. COPY XALL.COM %1
  103. COPY SCANSYS.BAT %1
  104. COPY SCANDIR.BAT %1
  105. COPY SCANRFDR.BAT %1
  106. COPY SCANMAX.BAT %1
  107. COPY FASTRUN.BAT %1
  108. COPY DELFILES.BAT %1
  109. COPY INIT*.BAT %1
  110. COPY CH*.BAT %1
  111. COPY DSP*.BAT %1
  112. DEL CHKBOOT.PRM
  113. : Create special marker file so other batch files know about this one
  114. TYPE %1PCITKC.MRK >%1PCITKC.MRK
  115. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  116. ECHO ║ Your CHECK diskette has been built.  We are now checking the files      ║
  117. ECHO ║ written to it.  No files should be missing.  All toolkit files should   ║
  118. ECHO ║ match (This means all .COM and .BAT files).  If any files are deleted   ║
  119. ECHO ║ check that there is enough room on the diskette.  If any errors show up,║
  120. ECHO ║ please get a clean copy of the toolkit.                                 ║
  121. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  122. ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
  123. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  124. CHKfileC %1*.* ))INTCB.LOG/I:))
  125. CFcompC ))INTC.LOG ))INTCB.LOG/P/O
  126. DEL ))INTCB.LOG
  127. ECHO ╔════════════════════╗
  128. ECHO ║ SETUP is complete! ║
  129. ECHO ╚════════════════════╝
  130. :End
  131. 
  132.